package com.example.springboottest.example.format;

import java.text.MessageFormat;

public class MessageFormatTest {
    public static void main(String[] args) {
        String mes = "Hello {0}";
        String name = "Tom";

        System.out.println(MessageFormat.format(mes, name));
    }
}
